package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

//套餐
public interface SetmealService {


    //根据categoryId查询status=1的套餐
    List<Setmeal> findList(Long categoryId, Integer status);

    //分页查询
    Page<Setmeal> findByPage(String name, Integer pageNum, Integer pageSize);

    //新增套餐
    void save(Setmeal setmeal);

    //删除套餐
    void deleteByIds(Long[] ids);

    //启售，停售
    void updateByIds(Integer status, Long[] ids);

    //根据主键查询
    Setmeal findById(Long id);

    //修改套餐
    void update(Setmeal setmeal);

    List<Dish> getMealId(Long id);
}
